<template>
  <div class="app-container">
    <el-table
      v-loading="loading"
      :data="list"
      element-loading-text="加载中"
      border
      fit
      highlight-current-row
      @selection-change="handleSelectionChange"
    >
      <el-table-column align="center" label="ID" width="95" prop="id"></el-table-column>
      <el-table-column label="学期学年">
        <template v-slot="scope">
          <year-semester-show :year="scope.row.year" :semester="scope.row.semester"></year-semester-show>
        </template>
      </el-table-column>
      <el-table-column label="当前状态" prop="status">
        <template v-slot="scope">
          <status-show data-name="arrange_status" :value="scope.row.status"></status-show>
        </template>
      </el-table-column>
      <el-table-column label="备注" prop="remark"></el-table-column>
      <el-table-column label="提交时间" prop="createTime"></el-table-column>
      <el-table-column label="完成时间" prop="updateTime"></el-table-column>
    </el-table>

    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="pageSizes"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
</template>

<script>
import {getArrangeRecordList, addArrangeRecord, updateArrangeRecord, getOneArrangeRecord, deleteOneArrangeRecord, resetArrangeRecordPassword} from "@/api/arrangeRecord";
import List from "@/mixins/list";
import StatusShow from "@/components/StatusShow";
import YearSemesterShow from "@/components/YearSemesterShow/YearSemesterShow";

export default {
  components: {YearSemesterShow, StatusShow},
  data() {
    return {
      queryListFun: getArrangeRecordList,
      addFun: addArrangeRecord,
      updateFun: updateArrangeRecord,
      queryOneFun: getOneArrangeRecord,
      deleteOneFun: deleteOneArrangeRecord,
      validator: null,
      queryForm: {
      },
      form: {
      },
      name: '排课记录'
    }
  },
  mixins: [
    List
  ],
}
</script>

<style scoped>

</style>
